{include file="csmitsm/xcore/xcflow/xcform/include/xcformfields_header"/}
<div class="xcflow-block" style="text-align: center;" v-if="logicObj&&hasFlowButton===true">
    <a v-for="button in logicObj.buttons" class="btn btn-success btn-embossed xcflow-btn"
            @click="control_clickLogicButton(button.type, button.name)">{{button.name}}</a>
    <!-- :style="{'color':button.color,'backgroundColor':button.bgcolor}" -->
</div>
<el-form :model="control.form" ref="form" label-width="100px" class="form-horizontal xcflow-block" label-position="top">
    <div class="xcflow-title">{{xcform.name}}#{{flowinstance.xcflow_fstatusname}}</div>
    {include file="csmitsm/xcore/xcflow/xcform/include/xcformfields" disabled="true"/}
</el-form>

<div class="xcflow-block">
    <h3>审核记录</h3>
    <div class="xc-block" v-for="item in xcflowinstancetraces">
        <div class="xc-title">{{item.title}}</div>
        <div class="xc-content">{{item.trace_submittime}} {{item.from_fstatusname}} -> {{item.target_fstatusname}}
            {{item.content}}
        </div>
    </div>
</div>

<el-dialog :title="control.dialog_title" :visible="control.dialog_reject_visible" @close="control.dialog_reject_visible=false;">
    <el-form :model="control.form" ref="rejectform" label-width="80px" label-position="top">
        <el-form-item label="意见">
            <el-input type="textarea" :rows="2" placeholder="请输入" v-model="control.dialog_reject_content">
            </el-input>
        </el-form-item>
    </el-form>
    <el-row type="flex" justify="center">
        <el-button @click="control.dialog_reject_visible=false;">取消</el-button>
        <el-button type="danger" @click="control_clickReject">提交</el-button>
    </el-row>
</el-dialog>
 

<el-dialog :append-to-body="true"  :title="control.dialog_title" :visible="control.dialog_pass_visible" @close="control.dialog_pass_visible = false" width="80%">
    <el-form :model="control.form" ref="passform" label-width="150px"  label-position="top">
        <section v-for="field in editXcfieldfulljson">
            <component :is="field.fieldtag" :xcform_id="xcform.id" :value="field" :fieldfulljson="editXcfieldfulljson"
            :disabled="false"></component>
        </section>
        <el-form-item label="意见" v-if="logicObj && logicObj.need_tracecontent===true">
            <el-input type="textarea" :rows="2" placeholder="请输入" v-model="control.dialog_pass_content">
            </el-input>
        </el-form-item>
    </el-form>
    <el-row type="flex" justify="center">
        <el-button @click="control.dialog_pass_visible=false;">取消</el-button>
        <el-button type="primary" @click="control_clickPass">提交</el-button>
    </el-row>
</el-dialog>



{include file="csmitsm/xcore/xcflow/xcform/include/xcformfields_footer"/}